package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.LabelInfo;
import com.atguigu.lease.model.enums.ItemType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author liubo
* @description 针对表【label_info(标签信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.atguigu.lease.model.LabelInfo
*/
public interface LabelInfoMapper extends BaseMapper<LabelInfo> {

    /**
     * @author gengjian
     * @date 2024/12/11 14:00:56
     * 根据公寓id查询标签关系，再通过标签关系查标签信息
     */
    List<LabelInfo> selectLabelInfoList(Long id);

    /**
     * @author gengjian
     * @date 2024/12/12 14:16:55
     * 根据房间id通过关系表获取房间标签
     */
    List<LabelInfo> selectRoomLabelInfoList(Long id);
}




